package com.kedacom.freedomLabel.initdata.bean;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;
import android.text.TextUtils;

import com.kedacom.freedomLabel.utils.Cn2Spell;

/**
 * Created by yao on 2021/3/23.
 * Describe
 */
@Entity
public class Post {

    @NonNull
    @PrimaryKey(autoGenerate = true)
    private long id;

    public String recordId;
    public Long weighingTime;
    public String gridName;
    public String gridType;
    public String weighingType;
    public String totalWeight;
    public String partsWeight;
    public String actualWeight;
    public String qualifiedType;
    public String classes;
    public String workTeam;
    public String staff;
    public String machineCode;
    public String instrument;
    public String memo;
    public String weightUnit;
    public int postSuccess = 0;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getRecordId() {
        return recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }


    public Long getWeighingTime() {
        return weighingTime;
    }

    public void setWeighingTime(Long weighingTime) {
        this.weighingTime = weighingTime;
    }

    public String getGridName() {
        return gridName;
    }

    public void setGridName(String gridName) {
        this.gridName = gridName;
    }

    public String getGridType() {
        return gridType;
    }

    public void setGridType(String gridType) {
        this.gridType = gridType;
    }

    public String getWeighingType() {
        return weighingType;
    }

    public void setWeighingType(String weighingType) {
        this.weighingType = weighingType;
    }

    public String getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(String totalWeight) {
        this.totalWeight = totalWeight;
    }

    public String getPartsWeight() {
        return partsWeight;
    }

    public void setPartsWeight(String partsWeight) {
        this.partsWeight = partsWeight;
    }

    public String getActualWeight() {
        return actualWeight;
    }

    public void setActualWeight(String actualWeight) {
        this.actualWeight = actualWeight;
    }

    public String getQualifiedType() {
        return qualifiedType;
    }

    public void setQualifiedType(String qualifiedType) {
        this.qualifiedType = qualifiedType;
    }

    public String getClasses() {
        return classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public String getWorkTeam() {
        return workTeam;
    }

    public void setWorkTeam(String workTeam) {
        this.workTeam = workTeam;
    }

    public String getStaff() {
        return staff;
    }

    public void setStaff(String staff) {
        this.staff = staff;
    }

    public String getMachineCode() {
        return machineCode;
    }

    public void setMachineCode(String machineCode) {
        this.machineCode = machineCode;
    }

    public String getInstrument() {
        return instrument;
    }

    public void setInstrument(String instrument) {
        this.instrument = instrument;
    }


    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public int getPostSuccess() {
        return postSuccess;
    }

    public void setPostSuccess(int postSuccess) {
        this.postSuccess = postSuccess;
    }

    public String getWeightUnit() {
        return weightUnit;
    }

    public void setWeightUnit(String weightUnit) {
        this.weightUnit = weightUnit;
    }

    @Override
    public String toString() {
        return "Post{" +
                "id=" + id +
                ", recordId='" + recordId + '\'' +
                ", weighingTime='" + weighingTime + '\'' +
                ", gridName='" + gridName + '\'' +
                ", gridType='" + gridType + '\'' +
                ", weighingType='" + weighingType + '\'' +
                ", totalWeight='" + totalWeight + '\'' +
                ", partsWeight='" + partsWeight + '\'' +
                ", actualWeight='" + actualWeight + '\'' +
                ", qualifiedType='" + qualifiedType + '\'' +
                ", classes='" + classes + '\'' +
                ", workTeam='" + workTeam + '\'' +
                ", staff='" + staff + '\'' +
                ", machineCode='" + machineCode + '\'' +
                ", instrument='" + instrument + '\'' +
                ", memo='" + memo + '\'' +
                ", postSuccess=" + postSuccess +
                '}';
    }
}
